
import java.io.*;
import java.util.*;

public abstract class Cls_15 extends Thread
{

    public int fld_86;
    public String fld_87;
    public int fld_88;
    public boolean fld_89;
    public Integer fld_90;
    private static int fld_91;
    public String fld_92;
    public String fld_93;
    public boolean fld_94;
    public int fld_95;
    public Cls_3 fld_96;

    public void mth_80()
    {
        fld_89 = true;
    }

    public final void mth_94()
    {
        if(fld_88 != 0)
            Cls_16.fld_301.mth_458(Cls_16.mth_483(fld_88));
    }

    public Cls_15(String s, int i)
    {
        fld_87 = s;
        fld_88 = Cls_16.mth_431(i);
        fld_90 = new Integer(++fld_91);
        s = this;
        i = fld_90;
        Cls_16.fld_359.put(i, s);
    }

    public abstract void mth_88(DataInputStream datainputstream);

    public void run()
    {
        try
        {
            Cls_16.mth_323();
            mth_73();
        }
        catch(Exception exception)
        {
            if(!fld_89)
            {
                System.out.println("exception in network request thread, stack trace follows");
                exception.printStackTrace();
                String s;
                mth_78(0, (s = exception.getMessage()) == null ? exception.toString() : s);
            }
        }
        Object obj;
        Cls_16.mth_430(((Cls_15) (obj = this)).fld_88);
        obj = ((Cls_15) (obj)).fld_90;
        Cls_16.fld_359.remove(obj);
    }

    public abstract void mth_78(int i, String s);

    public final void mth_97(int i)
    {
        if(fld_88 != 0)
            Cls_16.fld_301.mth_479(Cls_16.mth_483(fld_88), i);
    }

    public final void mth_98(DataInputStream datainputstream)
    {
        short word0 = datainputstream.readShort();
        datainputstream.readUTF();
        String s = datainputstream.readUTF();
        int i = datainputstream.readShort() << 1;
        Vector vector = new Vector(i);
        for(int j = 0; j < i; j++)
            vector.addElement(datainputstream.readUTF());

        mth_79(word0, s, vector);
    }

    public void mth_79(int i, String s, Vector vector)
    {
        if(fld_88 == 0)
            return;
        Cls_16.fld_301.mth_473();
        if(fld_89)
        {
            Cls_16.fld_301.mth_474();
            return;
        }
        Cls_16.fld_279.mth_758(i);
        Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140(s));
        if(vector != null && !vector.isEmpty())
        {
            Cls_16.fld_279.mth_175(vector.size());
            for(i = vector.elements(); i.hasMoreElements(); Cls_16.fld_279.mth_192((String)i.nextElement()));
            Cls_16.fld_279.mth_745(Cls_16.mth_747());
            return;
        } else
        {
            Cls_16.fld_279.mth_745(0);
            return;
        }
    }

    public Cls_15(String s, int i, String s1, String s2, boolean flag, int j)
    {
        this(s, i);
        fld_92 = s1;
        fld_93 = s2;
        fld_94 = flag;
        fld_95 = j;
    }

    public Cls_15(String s, int i, int j, String s1, boolean flag, int k)
    {
        this;
        s;
        i;
        if((s = j) != 0) goto _L2; else goto _L1
_L1:
        null;
          goto _L3
_L2:
        i = new StringBuffer();
        j = Cls_16.mth_763(s);
        Cls_16.fld_279.mth_753(s);
        for(s = 0; s < j >> 1; s++)
        {
            if(i.length() != 0)
                i.append('\n');
            i.append(Cls_16.fld_279.mth_779(Cls_16.fld_119[Cls_16.fld_534 + (s << 1)]));
            i.append(':');
            i.append(Cls_16.fld_279.mth_779(Cls_16.fld_119[Cls_16.fld_534 + (s << 1) + 1]));
        }

        i.toString();
_L3:
        s1;
        flag;
        k;
        Cls_15();
    }

    public Cls_15(String s, int i, int j)
    {
        this(s, 0, ((String) (null)), null, true, 0);
        fld_86 = 1;
    }

    public void mth_73()
    {
        Object aobj[] = new Object[88];
        int ai[] = new int[88];
        int ai1[] = ai;
        Object aobj1[] = aobj;
        Cls_15 cls_15 = this;
        if(fld_92 == null)
            cls_15.fld_92 = "";
        aobj1[64] = cls_15.fld_92.getBytes();
        ai1[65] = cls_15.fld_94;
        ai1[29] = cls_15.fld_93 == null ? 1 : 3;
        aobj1[42] = cls_15.fld_93;
        ai1[37] = cls_15.fld_95;
        aobj1[53] = cls_15.fld_87;
        fld_96 = Cls_16.mth_343(aobj, ai, fld_86 == 0 ? Cls_16.mth_688(fld_87, null) : fld_86);
        this;
        fld_89;
        JVM INSTR ifne 158;
           goto _L1 _L2
_L1:
        break MISSING_BLOCK_LABEL_139;
_L2:
        break MISSING_BLOCK_LABEL_158;
        mth_88(new DataInputStream(mth_91(fld_96)));
        fld_96.close();
        return;
        Exception exception;
        exception;
        fld_96.close();
        throw exception;
    }

    public InputStream mth_91(InputStream inputstream)
    {
        return inputstream;
    }
}